from flask import Flask
from flask_mail import Mail
import logging
logger = logging.getLogger(__name__)
mail = Mail()

from .decorator.ext_decorator import ext_decorator
@ext_decorator
def init_mail(app: Flask):
    mail.init_app(app)